import service from '@/utils/request'

export const useUsed_carsApi = (id: number) => {
	return service.get('/nb/used_cars/findById', {
		params: {
			id: id
		}
	})
}

export const useUsed_carsSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.post('/nb/used_cars/edit', dataForm)
	} else {
		return service.post('/nb/used_cars/add', dataForm)
	}
}
